﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CPSite.Master" AutoEventWireup="true" CodeBehind="MembersList.aspx.cs" Inherits="WebTemplate.ControlPanel.Membership.MembersList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <fieldset>
        <legend>Members</legend>

        <asp:GridView ID="Members" runat="server" PagerStyle-CssClass="pagger" AllowPaging="true" AllowSorting="true" PageSize="5" 
        DataKeyNames="Id" GridLines="None" AutoGenerateColumns="false" OnPageIndexChanging="Members_PageIndexChanging"
        OnSorting="Members_Sorting" OnRowCommand="Members_RowCommand">
        <Columns>
            <asp:BoundField DataField="UserID" HeaderText="UserID" SortExpression="UserID" />
            <asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
            <asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
            <asp:BoundField DataField="IsActive" HeaderText="Is Approved" SortExpression="IsActive" />
            <asp:ButtonField CommandName="DeleteMember" ButtonType="Link" Text="Delete" />
            <asp:ButtonField CommandName="ApproveMember" ButtonType="Link" Text="Approve"/>
        </Columns>

    </asp:GridView>

    </fieldset>

</asp:Content>
